//package com.dykj.fireFighting.web.mq.consumer;
//
//import com.dykj.fireFighting.web.enums.CommandEnum;
//import com.dykj.fireFighting.web.mq.consumer.business.BusinessProcess;
//
///**
// * @Author fgc
// * @Date 2021/9/30 10:58
// * @ Description：获取策略模式具体业务实现类
// */
//public class BusinessContext {
//    public static BusinessProcess getObject(String tag){
//        BusinessProcess businessProcess=null;
//        try {
//            businessProcess =(BusinessProcess) Class.forName(CommandEnum.getTextByTag(tag)).newInstance();
//        } catch (InstantiationException e) {
//            e.printStackTrace();
//        } catch (IllegalAccessException e) {
//            e.printStackTrace();
//        } catch (ClassNotFoundException e) {
//            e.printStackTrace();
//        }
//        return businessProcess;
//    }
//}
